package com.ruoyi.recipe.service;

import java.util.List;

import com.ruoyi.recipe.domain.RecipeDishItem;
import com.ruoyi.recipe.domain.RecipeDishStep;

/**
 * 步骤Service接口
 * 
 * @author ruoyi
 * @date 2024-11-23
 */
public interface IRecipeDishStepService 
{
    /**
     * 查询步骤
     * 
     * @param stepId 步骤主键
     * @return 步骤
     */
    public RecipeDishStep selectRecipeDishStepByStepId(Long stepId);

    /**
     * 查询步骤列表
     * 
     * @param recipeDishStep 步骤
     * @return 步骤集合
     */
    public List<RecipeDishStep> selectRecipeDishStepList(RecipeDishStep recipeDishStep);

    public int selectMaxStepSort(RecipeDishStep recipeDishStep);

    /**
     * 新增步骤
     * 
     * @param recipeDishStep 步骤
     * @return 结果
     */
    public int insertRecipeDishStep(RecipeDishStep recipeDishStep);

    /**
     * 批量新增菜品步骤
     *
     * @param list 菜品步骤集合
     * @return 结果
     */
    public int batchInsertRecipeDishStep(List<RecipeDishStep> list);

    /**
     * 修改步骤
     * 
     * @param recipeDishStep 步骤
     * @return 结果
     */
    public int updateRecipeDishStep(RecipeDishStep recipeDishStep);

    /**
     * 批量删除步骤
     * 
     * @param stepIds 需要删除的步骤主键集合
     * @return 结果
     */
    public int deleteRecipeDishStepByStepIds(String stepIds);

    /**
     * 删除步骤信息
     * 
     * @param stepId 步骤主键
     * @return 结果
     */
    public int deleteRecipeDishStepByStepId(Long stepId);

    /**
     * 删除材料
     *
     * @param dishId 菜品ID
     * @return 结果
     */
    public int deleteRecipeDishStepByDishId(Long dishId);

    /**
     * 批量删除材料
     *
     * @param dishIds 需要删除的菜品ID集合
     * @return 结果
     */
    public int deleteRecipeDishStepByDishIds(String[] dishIds);
}
